-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #10108: Add auto save conflict dialog #10426
Fixes #10108: Add auto save conflict dialog #10426
Conversation
Generated by 🚫 dangerJS |
WordPress/src/main/java/org/wordpress/android/ui/posts/PostListDialogHelper.kt
Outdated
Show resolved
Hide resolved
WordPress/src/main/java/org/wordpress/android/viewmodel/posts/PostListItemUiStateHelper.kt
Outdated
Show resolved
Hide resolved
You can test the changes on this Pull Request by downloading the APK here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @maxme! Really great work ;)!
The code looks great. I have left a few comments but they are all related to one thing - usage of word "conflict".
However, I've encountered one "bug"
- Create an unpublished revision in Calypso
- Open Post List in the app
- Notice the "Unhandled auto save" label
- Click on the post
- Choose "More recent version"
- Click back (don't change the post)
- Click on the post again
- Choose "Current version"
- Notice the content of the post is "More recent version"
WordPress/src/main/java/org/wordpress/android/ui/posts/PostActionHandler.kt
Show resolved
Hide resolved
WordPress/src/main/java/org/wordpress/android/ui/posts/PostConflictResolver.kt
Show resolved
Hide resolved
WordPress/src/main/java/org/wordpress/android/viewmodel/posts/PostListItemUiStateHelper.kt
Show resolved
Hide resolved
@maxme I added the copy review label. I think what you have written does a pretty good job of explaining it. But perhaps they can wave a little magic to make it more concise/simple. If you need to go ahead and ship it we can make the copy change an improvement afterwards |
Hi @osullivanchris @maxme. It would be nice to make this clearer / user-friendlier if we could -- to me it sounds confusing to have to choose between "Current" and "Most recent," since the two can mean the exact same thing. Just to make sure I understand the context here: if a user publishes a post on WPAndroid, edits (but doesn't save the edits) in Calypso, and then returns to WPAndroid, they'll get this message when trying to open the post for more editing. Is that... more or less correct? If so, below are my suggested edits -- let me know if these work for you; I tried to, as much as possible, to center this around what we can reasonably expect the user to know about their own post. If you think these aren't quite there either, thanks for helping me better understand the context in which this message will appear and I'd be happy to tweak the copy accordingly. :) Instead of...
How about...
And, instead of...
How about...
And in the CTAs, instead of
How about:
|
I'll be taking over this ticket as Maxime left for vacation and we'd like to merge the PR. Thanks @benhuberman!
Yep, I agree it's a bit confusing. The "current" is referring to the "current" version on the phone, whereas the "Most recent" to a most recent version from Calypso.
This is the only part I'm not sure about. As per the steps above there can be two unsaved versions and it might scare the user that they'll lose both unsaved revisions. What about something like "Continue with local/Load most recent web version"? |
Thanks @benhuberman for taking a look! I agree with @malinajirka it all sounds good to me, except the actions. Both versions are 'equal' they were just made on different platforms at different times. I think we had a version of this dialogue that shows the times things were edited @malinajirka ? I think it would be more useful to get them to choose a version by tapping on it directly and then we wouldn't need a button label to try and explain it in so many words. Something like |
I really like the direction that lets a user explicitly choose one of two specific versions. My remaining concern is about how we name these versions. Both "Local" and "Web" don't sound immediately clear to me. I can mull this a bit more and will let you know if/when I think of more intuitive CTAs. |
Following up here, I wonder if the two options below might work -- or are at least steps in the right direction. The copy teeing them up would still be:
Then, the two new choices would be:
And...
I know that "a different device" is tricky -- but "web" still strikes me as more confusing / open to mis-interpretation. |
I really like using "another device" instead of "web". As it can theoretically be a version from a tablet or an iPhone. How about "Which version would you like to edit?" I'm not sure if it's the best idea to have a button without a verb... but it'd solve some UI issues on smaller devices. Wdyt? |
Took a quick look at how these options could look and made some tweaks to make it work in the UI. Option 2 looks best to me - being able to both see the details about the version and click directly on it to select it. The concepts are already abstract so I like being able to click directly on an item rather than describing it, and then having a separate text button that you have to click (and figure out which one it relates to). Maybe we could say 'on this app' and 'from another device'. On and from might help explain that one is here and the other is elsewhere? not sure |
Thanks Chris!
I hate to say this :(, but both options 2 and 3 would require a custom dialog implementation. |
@malinajirka thanks for letting me know! I don't think this is worth a custom implementation right now either. Option 1 and 3 should still be valid, if you remove the text stylings from option 3. Option 2 with tap-able rows would be out though. |
I'm merging this PR into a feature branch since I don't want to mix Maxime's and mine changes. I'll create a new PR for the remaining issues. |
Fixes #10108: Add and auto save conflict dialog, Demo video
Related FluxC PR: wordpress-mobile/WordPress-FluxC-Android#1357
Here is the dialog, with current copy:
For reference, In Calypso:
Note the "Saved draft" is not 100% correct, since the post was published, that's why I didn't keep it.
@osullivanchris what do you think about that? Should we ping editorial directly?
To test: